#include "junix.h"
using namespace std;

class B
{
	public:
	B():i(1),j(2),k(3){}
	void printhello(){
		std::cout<<"hello,world!"<<std::endl;
	}
	int i;
	protected:
	int j;
	private:
	int k;
};

class D:protected B
{
	public:
	using B::i;
	using B::j;

	void using_base_hello(){
		printhello();
	}

	///error
	//	using B::k;
	//////////////////////////

	protected:
	private:
};

int main(int argc, char **argv)
{
	D d;
	std::cout<<d.i<<endl;
	std::cout<<d.j<<endl;
	d.using_base_hello();
	
	//d.printhello();
}
